/**
* Loading Dialog
*/
import Animation = Laya.Animation;
module common{
	export class LoaddingDialog{
		private static dialog:Dialog;
		constructor(){

		}
		public static show(clearStage:Boolean = false){
			clearStage && Laya.stage.removeChildren() ;

			var loadding:Animation = new Animation();
			loadding.loadAnimation("dialog/Loadding.ani");        
			loadding.pos(720,300)
			loadding.play();

			this.dialog = new Dialog();
			this.dialog.popupEffect = null;
			// this.dialog.closeEffect = null;
			this.dialog.addChild(loadding);
			this.dialog.width = 1440;
			this.dialog.height = 768;
			this.dialog.popup()
		}
		public static hide(){
			this.dialog.close()
		}
	}
}